pp108 : Application or Form Changes for Multi-browser Support

Application or Form Changes for Multi-browser Support

This topic describes the changes required to enable multi-browser support for an application or XForm.

An application or an XForm must be standards-compliant for it to be supported in multiple browsers.

XForm level changes

To make an XForm Standards compliant, open the XForm in the XForms Designer, double-click it, and select Transitional in the property sheet that displays. This ensures that all content in the XForm is modified to support multiple browsers.

Application level changes

To make an application Standards compliant,

  • ensure that DOCTYPE is declared in the beginning of the application. This indicates that the content can be rendered in the Standards mode on most browsers.
  • the namespace URL, eibus with xmlns as its prefix, which is usually set on a Web application, is no longer required.

As an example, consider the following sample code.

Old Usage: Standards non-compliant sample code in Quirks Mode
<html xmlns:eibus>
	<head>
		<script type="text/javascript" src="/cordys/wcp/application.js"></script>
	</head>
	<body>
	</body>
</html>
New Usage: Standards compliant sample code in Transitional Mode
<!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<script type="text/javascript" src="/cordys/wcp/application.js"></script>
	</head>
	<body>
	</body>
</html>